<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Test Case for console object</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Console object API: log</h1>

<p>This test-case is intended for <b>console.log</b> method used for logging
<code>XPathResult</code> type.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Open Firebug and enable the Console panel.</li>
<li>Click on the <code style="color:green">Execute Test</code> button below.</li>
<li>The Console panel should display array of elements (XPathResult): <span style="color:green">[h2, h2]</span></li>
</ol>

<button id="testButton" onclick="onExecuteTest()">Execute Test</button>
<br/><br/>

<h2>1</h2>
<h2>2</h2>

<script type="text/javascript">
function onExecuteTest()
{
    var xPathResult = document.evaluate("//h2", document.body, null,
        XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
    console.log(xPathResult);
}
</script>

</body>
</html>
